package org.domain.rescue2011.entity;

// Generated 16-ago-2011 19:40:14 by Hibernate Tools 3.3.0.GA

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * ObjetivosLineaInvestigacion generated by hbm2java
 */
@Entity
@Table(name = "objetivos_linea_investigacion", catalog = "rescue")
public class ObjetivosLineaInvestigacion implements java.io.Serializable {

	private Integer idObjetivosLineaInvestigacion;
	private Integer proyLineaObj;
	private Integer publLineaObj;
	private Integer herrLineaObj;
	private Integer transLineaObj;
	private Integer colabLineaObj;
	private Integer confLineaObj;
	private Integer marcaTemporal;
	private Integer idLineaRedmine;
	private Set<Objetivos> objetivoses = new HashSet<Objetivos>(0);

	public ObjetivosLineaInvestigacion() {
	}

	public ObjetivosLineaInvestigacion(Integer proyLineaObj,
			Integer publLineaObj, Integer herrLineaObj, Integer transLineaObj,
			Integer colabLineaObj, Integer confLineaObj, Integer marcaTemporal,
			Integer idLineaRedmine, Set<Objetivos> objetivoses) {
		this.proyLineaObj = proyLineaObj;
		this.publLineaObj = publLineaObj;
		this.herrLineaObj = herrLineaObj;
		this.transLineaObj = transLineaObj;
		this.colabLineaObj = colabLineaObj;
		this.confLineaObj = confLineaObj;
		this.marcaTemporal = marcaTemporal;
		this.idLineaRedmine = idLineaRedmine;
		this.objetivoses = objetivoses;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "idObjetivos_linea_investigacion", unique = true, nullable = false)
	public Integer getIdObjetivosLineaInvestigacion() {
		return this.idObjetivosLineaInvestigacion;
	}

	public void setIdObjetivosLineaInvestigacion(
			Integer idObjetivosLineaInvestigacion) {
		this.idObjetivosLineaInvestigacion = idObjetivosLineaInvestigacion;
	}

	@Column(name = "proy_linea_obj")
	public Integer getProyLineaObj() {
		return this.proyLineaObj;
	}

	public void setProyLineaObj(Integer proyLineaObj) {
		this.proyLineaObj = proyLineaObj;
	}

	@Column(name = "publ_linea_obj")
	public Integer getPublLineaObj() {
		return this.publLineaObj;
	}

	public void setPublLineaObj(Integer publLineaObj) {
		this.publLineaObj = publLineaObj;
	}

	@Column(name = "herr_linea_obj")
	public Integer getHerrLineaObj() {
		return this.herrLineaObj;
	}

	public void setHerrLineaObj(Integer herrLineaObj) {
		this.herrLineaObj = herrLineaObj;
	}

	@Column(name = "trans_linea_obj")
	public Integer getTransLineaObj() {
		return this.transLineaObj;
	}

	public void setTransLineaObj(Integer transLineaObj) {
		this.transLineaObj = transLineaObj;
	}

	@Column(name = "colab_linea_obj")
	public Integer getColabLineaObj() {
		return this.colabLineaObj;
	}

	public void setColabLineaObj(Integer colabLineaObj) {
		this.colabLineaObj = colabLineaObj;
	}

	@Column(name = "conf_linea_obj")
	public Integer getConfLineaObj() {
		return this.confLineaObj;
	}

	public void setConfLineaObj(Integer confLineaObj) {
		this.confLineaObj = confLineaObj;
	}

	@Column(name = "idLinea_redmine")
	public Integer getIdLineaRedmine() {
		return this.idLineaRedmine;
	}

	public void setIdLineaRedmine(Integer idLineaRedmine) {
		this.idLineaRedmine = idLineaRedmine;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "objetivosLineaInvestigacion")
	public Set<Objetivos> getObjetivoses() {
		return this.objetivoses;
	}

	public void setObjetivoses(Set<Objetivos> objetivoses) {
		this.objetivoses = objetivoses;
	}

	@Column(name ="marca_temporal")
	public Integer getMarcaTemporal() {
		return marcaTemporal;
	}

	public void setMarcaTemporal(Integer marcaTemporal) {
		this.marcaTemporal = marcaTemporal;
	}
	
	

}
